<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<title>刮刮乐活动编辑</title>
<link href="${base}/resource/admin/css/common.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="${base}/resource/admin/js/jquery.js"></script>
<script type="text/javascript" src="${base}/resource/admin/js/jquery.validate.js"></script>
<script type="text/javascript" src="${base}/resource/admin/js/common.js"></script>
<script type="text/javascript" src="${base}/resource/admin/js/input.js"></script>
<script type="text/javascript" src="${base}/resource/admin/datePicker/WdatePicker.js"></script>
<style type="text/css">
.authorities label {
	min-width: 120px;
	_width: 120px;
	display: block;
	float: left;
	padding-right: 4px;
	_white-space: nowrap;
}
</style>
<script type="text/javascript">
$().ready(function() {

	var $inputForm = $("#inputForm");
    var $browserButton = $("#browserButton");
    $browserButton.browser();
	[@flash_message /]

	
});
</script>
</head>
<body>
	<div class="path">
		<a href="${base}/admin/main.do">首页</a> &raquo; 商品类型编辑
	</div>
	<form id="inputForm" action="update.do" method="post">
		<input type="hidden" name="id" value="${entity.id}" />
		<table class="input">
			<tr>
				<th>
					<span class="requiredField">*</span>编号:
				</th>
				<td>
					<input type="text" name="sn" class="text" value="${entity.sn}" maxlength="200" />
				</td>
			</tr>
			<tr>
				<th>
					名称:
				</th>
				<td>
					<input type="text" name="name" class="text" value="${entity.name}" maxlength="200" />
				</td>
			</tr>

            <tr>
                <th>
                    <span class="requiredField">*</span>奖品图片:
                </th>
                <td>
                <span class="fieldSet">
						<input type="text" id="imgPath" name="imgPath" class="text valid"  maxlength="200" value="${entity.imgPath}" required="required">
						<input type="button" id="browserButton" class="button" value="选择文件">
					</span>
                    <span class="requiredField">* 上传80px,80px大小图片</span>:
                </td>
            </tr>

            <tr>
                <th>
                    <span class="requiredField">*</span>状态:
                </th>
                <td>
                    <select name="status" class="text">
                        <option [#if entity.status==0]selected="selected"  [/#if]  value="0">启用</option>
                        <option [#if entity.status==1] selected="selected" [/#if] value="1" >禁用</option>

                    </select>
                </td>
            </tr>
            <tr>
                <th>
                    排序:
                </th>
                <td>
                    <input type="text" name="orderNum" class="text" value="${entity.orderNum}" maxlength="200" />
                </td>
            </tr>
			<tr>
				<th>
					&nbsp;
				</th>
				<td>
					<input type="submit" class="button" value="提交" />
					<input type="button" class="button" value="返回" onclick="location.href='list.do'" />
				</td>
			</tr>
		</table>
	</form>
</body>
</html>